﻿<Canvas x:Class="Guitar.Vues.VueNote"
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
        xmlns:PresentationOptions="http://schemas.microsoft.com/winfx/2006/xaml/presentation/options" 
          xmlns:local="clr-namespace:Guitar.Vues"
             xmlns:d="http://schemas.microsoft.com/expression/blend/2008" 
             mc:Ignorable="d" 
             Height="30"  Width="20"  MouseEnter="Rectangle_MouseEnter" MouseLeave="Rectangle_MouseLeave"  HorizontalAlignment="Left" MouseLeftButtonDown="UserControl_MouseDown">
    <Canvas.Resources>

        <SolidColorBrush PresentationOptions:Freeze="True" Color="Black" x:Key="black"/>

        <LinearGradientBrush PresentationOptions:Freeze="True" x:Name="normal" x:Key="normal" EndPoint="1,0.5" StartPoint="0,0.5">
            <GradientStop Color="#67DEDEDE" Offset="0" />
            <GradientStop Color="#9BC7C7C7" Offset="1" />
        </LinearGradientBrush>

        <LinearGradientBrush PresentationOptions:Freeze="True" x:Name="selected" x:Key="selected" EndPoint="1,0.5" StartPoint="0,0.5">
            <GradientStop Color="#FFF5F5B0" Offset="0" />
            <GradientStop Color="#DFEBEB51" Offset="1" />
        </LinearGradientBrush>

        <RotateTransform PresentationOptions:Freeze="True" Angle="-14.13" x:Key="transformCroche"/>
   
        <TransformGroup PresentationOptions:Freeze="True" x:Key="transformCroche3">
            <ScaleTransform ScaleX="1" ScaleY="1"/>


        </TransformGroup>
        <TransformGroup PresentationOptions:Freeze="True" x:Key="transformCroche2">        
                <ScaleTransform ScaleX="1" ScaleY="-1"/>       
              
          
        </TransformGroup>

        <LinearGradientBrush PresentationOptions:Freeze="True" x:Name="over"  x:Key="over" EndPoint="1,0.5" StartPoint="0,0.5">
            <GradientStop Color="#72F5EFCF" Offset="0" />
            <GradientStop Color="#9BC7C7C7" Offset="1" />
        </LinearGradientBrush>

    </Canvas.Resources>


    <Rectangle   Height="30"  Width="20" Visibility="Hidden"  Name="FondNote" RadiusX="2" RadiusY="2" Stroke="#FF69BA69"/>

    <Label Name="AlterationGauche" Padding="0" VerticalAlignment="Bottom" Height="10" Visibility="Visible" Canvas.Left="1" Canvas.Top="19" FontFamily="Candara" FontSize="10" Content="#" FontStyle="Italic"></Label>

    <Ellipse  Width="9"  RenderTransform="{StaticResource transformCroche}" Height="7" HorizontalAlignment="Left"   Name="Ellipsenote" Stroke="Black" VerticalAlignment="Bottom" Fill="Black"  Canvas.Left="5" Canvas.Top="24" />

    <Rectangle Width="1" Height="24" Stroke="{StaticResource black}"  Fill="{StaticResource black}"  Name="Tige" HorizontalAlignment="Left"   StrokeThickness="0" RadiusX="3" RadiusY="3" Canvas.Left="14" Canvas.Top="2" />

    <local:Croche x:Name="croche1" Visibility="Hidden"  Canvas.Left="15" Canvas.Top="3"></local:Croche>
    <local:Croche x:Name="croche2" Visibility="Hidden" Canvas.Left="15" Canvas.Top="7"></local:Croche>
    <local:Croche x:Name="croche3" Visibility="Hidden" Canvas.Left="15" Canvas.Top="11"></local:Croche>
    <local:Croche x:Name="croche4" Visibility="Hidden" Canvas.Left="15" Canvas.Top="15"></local:Croche>

    <Ellipse Height="2"   Fill="{StaticResource black}"  Width="2" Margin="2,23,0,0" Visibility="Visible" Name="point" Canvas.Left="14" Canvas.Top="2"></Ellipse>
    <Rectangle Canvas.Left="6" Canvas.Top="25" Visibility="Hidden" Fill="{StaticResource black}" Height="24" Name="tigeBas" RadiusX="3" RadiusY="3" Stroke="{StaticResource black}" StrokeThickness="0" Width="1" />

    <!--<local:Croche x:Name="croche1b"  Visibility="Visible"  Canvas.Left="6" Canvas.Top="49" RenderTransform="{StaticResource transformCroche2}"></local:Croche>
    <local:Croche x:Name="croche1bb"  Visibility="Visible"  Canvas.Left="6" Canvas.Top="46" RenderTransform="{StaticResource transformCroche2}"></local:Croche>

    <local:Croche x:Name="croche1bbbb"  Visibility="Visible"  Canvas.Left="6" Canvas.Top="43" RenderTransform="{StaticResource transformCroche2}"></local:Croche>

    <local:Croche x:Name="croche1bbb"  Visibility="Visible"  Canvas.Left="6" Canvas.Top="40" RenderTransform="{StaticResource transformCroche2}"></local:Croche>-->
    <Canvas.ToolTip >
        <ToolTip Name="Tool"></ToolTip>
    </Canvas.ToolTip>

    <Canvas.ContextMenu>
        <ContextMenu  Name="menu_note">

            <MenuItem Header="Changer la note" />
            <Separator />
            <MenuItem Header="Rythme">
                <MenuItem Header="Ronde" Click="MenuItemRythm_Click">
                    <MenuItem.Icon>
                        <Image Source="/Guitar;component/Images/ic/ronde.png" />
                    </MenuItem.Icon>
                </MenuItem>
                <MenuItem Header="Blanche" Click="MenuItemRythm_Click">
                    <MenuItem.Icon>
                        <Image Source="/Guitar;component/Images/ic/blanche.png" />
                    </MenuItem.Icon>
                </MenuItem>
                <MenuItem  Header="Noire" Click="MenuItemRythm_Click">
                    <MenuItem.Icon>
                        <Image Source="/Guitar;component/Images/ic/noire.png" />
                    </MenuItem.Icon>
                </MenuItem>
                <MenuItem Header="Croche" Click="MenuItemRythm_Click">
                    <MenuItem.Icon>
                        <Image Source="/Guitar;component/Images/ic/croche.png" />
                    </MenuItem.Icon>
                </MenuItem>
                <MenuItem Header="Double croche" Click="MenuItemRythm_Click">
                    <MenuItem.Icon>
                        <Image Source="/Guitar;component/Images/ic/doublecroche.png" />
                    </MenuItem.Icon>
                </MenuItem>
                <MenuItem  Header="Triple croche" Click="MenuItemRythm_Click">
                    <MenuItem.Icon>
                        <Image Source="/Guitar;component/Images/ic/triplecroche.png" />
                    </MenuItem.Icon>
                </MenuItem>
                <MenuItem  Header="Quadruple croche" Click="MenuItemRythm_Click">
                    <MenuItem.Icon>
                        <Image Source="/Guitar;component/Images/ic/quaduplecroche.png" />
                    </MenuItem.Icon>
                </MenuItem>
            </MenuItem>
            <MenuItem Header="Pointure">
                <MenuItem Header="Sans"/>
                <MenuItem  Header="Pointure simple">

                    <MenuItem.Icon>
                        <Image Source="/Guitar;component/Images/ic/pointure.png" />
                    </MenuItem.Icon>
                </MenuItem>
                <MenuItem Header="Double Pointure"/>
            </MenuItem>
            <Separator />
            <MenuItem Header="Ligature" />
            <MenuItem Header="Liaison" />
            <MenuItem  Header="Effets">
                <MenuItem.Icon>
                    <Image Width="16" Height="16"  Source="/Guitar;component/Images/ic/kmix-256.png" />
                </MenuItem.Icon>
            </MenuItem>
            <Separator />
            <MenuItem Header="Options Graphique" >
                <MenuItem.Icon>
                    <Image Width="16" Height="16" Source="/Guitar;component/Images/ic/thumbnail-256.png" />
                </MenuItem.Icon>
                <MenuItem Header="Sens de la tige">
                    <MenuItem Header="Automatique"></MenuItem>
                    <MenuItem Header="Vers Bas"></MenuItem>
                    <MenuItem Header="Vers le haut"></MenuItem>
                </MenuItem>



            </MenuItem>
        </ContextMenu>
    </Canvas.ContextMenu>

</Canvas>
   

